const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 建立了对user模块中的token的快捷访问方式
  uname: state => state.user.userInfo.username,
  userId: state => state.user.userInfo.userId,
  headerImg: state => state.user.userInfo.staffPhoto,
  companyId: state => state.user.userInfo.companyId // 建立对于user模块的companyId的快捷访问
}

export default getters
